import {
  user
} from '../../../api.js'
var app = getApp().globalData; //获取App内部的信息
Page({
  data: {
    logo_url: '',
    miniapp_qrcode: '',
    merFullName: '',
    legalName: ''
  },
  onLoad: function (options) {
    // 测试
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
    let _this = this;
    console.log(app.userInfo)
    _this.setData({
      logo_url: app.userInfo.user.topimageurl,
      merFullName: app.userInfo.user.name
    })
  },
  qrcode: function () {
    wx.navigateTo({
      url: '/pages/user/QRcode/QRcode',
      success: function (res) { },
      fail: function (res) { },
      complete: function (res) { },
    })
  },
  bill: function () {
    wx.navigateTo({
      url: '/pages/user/bill/bill',
      success: function (res) { },
      fail: function (res) { },
      complete: function (res) { },
    })
  },
})